﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class GateService_VailManger : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.Form["checkcode"]!=null)
            {
                if (Session["vcdo"] != null)
                {

                    if (Session["vcdo"].ToString() == Request.Form["checkcode"].ToString().ToUpper())
                    {
                        Response.Write("1");
                    }
                    else
                    {
                        Response.Write("0");
                        Session["vcdo"]=null;
                    }

                }
                else
                {
                    
                    Response.Write("2");
                }
            }
            
        }
       
    }
}